package com.atguigu.executor;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author ：Hachimen
 * @date ：Created in 2021/9/7 20:02
 * @description：
 * @modified By：
 * @version:
 */
public class MyExecutor {
    private static ThreadPoolExecutor executor = new ThreadPoolExecutor(
            30,50,30, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100)
    );
    private MyExecutor(){};
    public static ThreadPoolExecutor getInstance(){
        return executor;
    }
}
